<%@ page  contentType="text/html; charset=UTF-8"%>
<%@ include file="../../public/public.jsp" %>

<% int rowColor = 1; 
	int pageSize = ((Integer)valueStack.findValue("pageForm.pageSize")).intValue();
	int pageNo = ((Integer)valueStack.findValue("pageForm.pageNo")).intValue();
	int rowNo = (pageNo-1)*pageSize+1;
%>
    <table  cellspacing="1" class="dataTableStyle"> 
    	<thead>
    	<s:if test="pagePosition.toLowerCase().equals('top') || pagePosition.toLowerCase().equals('all')">
    		<tr bgcolor="#FFFFFF">
    		
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    		<tr>
    			<th align="center" width=5%">序号</th>
				<th align="center" width="20%">名称</th>
				<th align="center" width="8%">主编/参编</th>
				<th align="center" width="8%">制定/修订</th>
				<th align="center" width="15%">参与单位</th>
				<th align="center" width="10%">级别名称</th>
				<th align="center" width="9%">实施时间</th>
				<ss:condition rescode="SpecificationPublish" optcode="PRINT||GLOBAL">
    			<th align="center" width="15%">报送单位</th>
    			</ss:condition>
    			<ss:condition rescode="SpecificationPublish" optcode="UPDATE||DELETE">
				<th align="center" width="10%">操作</th>
				</ss:condition>
			</tr>
    	</thead>
    	<tbody>
    		<s:set name="yearflag" value=""></s:set>
    		<s:iterator value="data">
    		<% if((rowColor++ %2)==0){ %>
    		<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs1">
    		<%}else{ %>
    		<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs2">
    		<%} %>
			
				<s:if test="belongYear!=#yearflag">
    			<s:set name="yearflag" value="belongYear"></s:set>
    				<td colspan="9" class="yearTDStyle">&nbsp;&nbsp;<s:property value="belongYear"/>年</td>
    				</tr>
    				<% 
    				rowNo=1;
    				if((rowColor++ %2)==0){ %>
    					<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs1">
    				<%}else{ %>
    					<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs2">
    				<%} %>
    			</s:if>
    			<s:bean name="java.util.Date" id="now" >
						<s:param name="pattern" value="yyyy-MM-dd"/>
				</s:bean>
    			
    			
    			<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    			<span><%=rowNo++ %></span>
    			</td>
    			
    			<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    			<a href='javascript:lookView(<s:property value="id"/>)' style="cusor:hand">
    				<s:property value="standardPublishName"/></a> </td>
    				
    				
    				
    				
    				
				<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    				<span><s:if test="editorOrActor==1">主编</s:if>
    				<s:elseif test="editorOrActor==2">参编</s:elseif></span>
    			</td>
    			
    			
    			
				<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    				<span><s:if test="createOrModify==1">制定</s:if>
    				<s:elseif test="createOrModify==2">修订</s:elseif></span>
    			</td>
    			
    			
    			
    			<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    			<span><s:property value="joinDep"/></span></td>
    			
    			
    			
    			
				<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    			
    			<span><s:property value="levelName"/></span></td>
    			
    			
    			
    			
				<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
					<span><s:date name="dealDate" format="yyyy-MM-dd" /></span>
				</td>
				
				
				<ss:condition rescode="SpecificationPublish" optcode="PRINT||GLOBAL">
    				<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    			
    			<span><s:property value="sentDepName"/></span></td>
    			</ss:condition>
    			
    			<ss:condition rescode="SpecificationPublish" optcode="UPDATE||DELETE">
				<s:if test="stopDate!=null && #now>=stopDate">
    				<td align="center" class="data_show_color3">
    			</s:if>
    			<s:elseif test="dealDate!=null && #now>=dealDate">
    				<td align="center" class="data_show_color2">
    			</s:elseif>
    			<s:else>
    				<td align="center" class="data_show_color1">
    			</s:else>
    				<ss:condition rescode="SpecificationPublish" optcode="UPDATE">
						<a href="javascript:goUpdate(<s:property value="id"/>)">[修改]</a>
					</ss:condition><!--
    				&nbsp;
    				--><ss:condition rescode="SpecificationPublish" optcode="DELETE">
						<a href="javascript:del(<s:property value="id"/>)">[删除]</a>
					</ss:condition>
    			</td>
    			</ss:condition>
    		 </tr>
    		</s:iterator>
    		
    		
    		
    		<tr class="data_tr_bgcs1">
    			<td colspan="9" style="color: black;text-align: left;">
    			备注：
    			<br/>

				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;处于<span class="data_show_color1">已发布</span>状态的成果以<span class="data_show_color1">蓝色</span>显示
				<br/>
				
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;处于<span class="data_show_color2">实行中</span>状态的成果以<span class="data_show_color2">绿色</span>显示
				<br/>
				
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;处于<span class="data_show_color3">已过期</span>状态的成果以<span class="data_show_color3">灰色</span>显示
    			</td>
    		</tr>
    		
    		
    		
    		
    		
    		
    		
    		
    	</tbody>
		<tfoot>
    	<s:if test="pagePosition.toLowerCase().equals('buttom') || pagePosition.toLowerCase().equals('all')">
    		<tr class="dataList_pageForm_style">
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    	</tfoot>
    </table>